package org.example.mpplus.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
//这个用于数据库表名语类名字不一样时，括号里面填表名
@TableName("user")
public class User {
    @TableId//这个是声明主键，如果不写默认id为主键
    private int id;
    private String name;
    private String password;
  
    private Integer age;
    private String tel;

}
